package com.example.doctorserver.mapper;

import com.example.doctorserver.pojo.Doctor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface DoctorMapper {
    int deleteByPrimaryKey(Integer docId);

    int insert(Doctor record);

    int insertSelective(Doctor record);

    Doctor selectByPrimaryKey(Integer docId);

    int updateByPrimaryKeySelective(Doctor record);

    int updateByPrimaryKey(Doctor record);

    @Select("select docId,docCode,realName,password,sex,deptno from doctor where docCode=#{docCode} order by docCode")
    Doctor login(String  doctor);
}